package com.jhs.kjs.dto.combine;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.jhs.kjs.dto.CarDetailInfo_CarDTO;
import com.jhs.kjs.handler.PezUtil;

public class CarCusInfoDetail extends CarDetailInfo_CarDTO{
	Long cus_CustomerCode;
	Long cus_AgentCode;
	String cus_CustomerName;
	String cus_Description;
	String cus_Dept;
	String cus_Officer;
	String cus_Phone;
	String cus_OnSubscription;
	Date cus_SubscriptionDate;
	Date cus_OpeningDate;
	Integer cus_PaymentType;
	Date cus_RegiDate;
	String checkedCarCodes;
	int userCode;
	public Long getCus_CustomerCode() {
		return cus_CustomerCode;
	}
	public void setCus_CustomerCode(Long cus_CustomerCode) {
		this.cus_CustomerCode = cus_CustomerCode;
	}
	public Long getCus_AgentCode() {
		return cus_AgentCode;
	}
	public void setCus_AgentCode(Long cus_AgentCode) {
		this.cus_AgentCode = cus_AgentCode;
	}
	public String getCus_CustomerName() {
		return cus_CustomerName;
	}
	public void setCus_CustomerName(String cus_CustomerName) {
		this.cus_CustomerName = cus_CustomerName;
	}
	public String getCus_Description() {
		return cus_Description;
	}
	public void setCus_Description(String cus_Description) {
		this.cus_Description = cus_Description;
	}
	public String getCus_Dept() {
		return cus_Dept;
	}
	public void setCus_Dept(String cus_Dept) {
		this.cus_Dept = cus_Dept;
	}
	public String getCus_Officer() {
		return cus_Officer;
	}
	public void setCus_Officer(String cus_Officer) {
		this.cus_Officer = cus_Officer;
	}
	public String getCus_Phone() {
		return cus_Phone;
	}
	public void setCus_Phone(String cus_Phone) {
		this.cus_Phone = cus_Phone;
	}
	public String getCus_OnSubscription() {
		return cus_OnSubscription;
	}
	public void setCus_OnSubscription(String cus_OnSubscription) {
		this.cus_OnSubscription = cus_OnSubscription;
	}
	public String getCus_SubscriptionDate() {
		return PezUtil.getDateyyyyMMdd(cus_SubscriptionDate);
	}
	public void setCus_SubscriptionDate(Date cus_SubscriptionDate) {
		this.cus_SubscriptionDate = cus_SubscriptionDate;
	}
	public Date getCus_OpeningDate() {
		return cus_OpeningDate;
	}
	public void setCus_OpeningDate(Date cus_OpeningDate) {
		this.cus_OpeningDate = cus_OpeningDate;
	}
	public Integer getCus_PaymentType() {
		return cus_PaymentType;
	}
	public void setCus_PaymentType(Integer cus_PaymentType) {
		this.cus_PaymentType = cus_PaymentType;
	}
	public Date getCus_RegiDate() {
		return cus_RegiDate;
	}
	public void setCus_RegiDate(Date cus_RegiDate) {
		this.cus_RegiDate = cus_RegiDate;
	}
	
	public String getCus_DetectTime(){
		return PezUtil.getDateWithFormat(super.getDetectTime(), "yyyy-MM-dd HH:mm:ss");
	}

	
	public String getCheckedCarCodes() {
		return checkedCarCodes;
	}
	public List<Long> getCheckedCarCodesList() {
		List<Long> l = new ArrayList<Long>();
		if(getCheckedCarCodes()==null) return l;
				
		for(String s : getCheckedCarCodes().split(",")){
			l.add(Long.parseLong(s));
		}
		return l;
	}
	public void setCheckedCarCodes(String checkedCarCodes) {
		this.checkedCarCodes = checkedCarCodes;
	}
	public int getUserCode() {
		return userCode;
	}
	public void setUserCode(int userCode) {
		this.userCode = userCode;
	}
	
	
}
